package com.dog.basics.service.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.dto.admin.common.CommonProblemClassAddDto;
import com.dog.basics.bean.dto.admin.common.CommonProblemClassEditDto;
import com.dog.basics.bean.dto.admin.common.CommonProblemClassSelectDto;
import com.dog.basics.bean.model.common.SysCommonProblemClass;
import com.dog.basics.bean.vo.admin.sys.CommonProblemClassPageListVo;
import com.dog.basics.bean.vo.admin.sys.CommonProblemClassPageVo;
import com.dog.basics.common.util.PageParam;

/**
 * <p>
 * 常见问题分类 服务类
 * </p>
 *
 * @author fengjukang
 * @since 2019-10-11
 */
public interface ISysCommonProblemClassService extends IService<SysCommonProblemClass> {
    /**
     * 常见问题分类
     *
     * @param page
     * @param dto
     * @return
     * @author guonh
     */
    IPage<CommonProblemClassPageVo> getCommonProblemClass(PageParam page, CommonProblemClassSelectDto dto);

    /**
     * 常见问题列表
     *
     * @param page
     * @param dto
     * @return
     * @author guonh
     */
    IPage<CommonProblemClassPageListVo> getCommonProblemClassPageList(Page page, CommonProblemClassSelectDto dto);

    /**
     * 常见问题新增
     *
     * @param commonProblemClassAddDto
     * @return
     * @author guonh
     */
    Boolean addCommonProblemClass(CommonProblemClassAddDto commonProblemClassAddDto);

    /**
     * 常见问题修改
     *
     * @param commonProblemClassEditDto
     * @return
     * @author guonh
     */
    Boolean editCommonProblemClass(CommonProblemClassEditDto commonProblemClassEditDto);

    /**
     * 常见问题删除
     *
     * @param id
     * @return
     * @author guonh
     */
    Boolean delCommonProblemClass(Long id);
}
